<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class UpdateProductTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
       //修改产品表 增加套餐类型
        Schema::table('product', function (Blueprint $table) {
            $table->string('tc')->nullable()->default(2)->comment('默认2 . 是否是套餐:1是 2否');
       });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
